package com.ruiyi.adrobot.mongo.robot;

import com.ruiyi.adrobot.beans.Robot;

import com.ruiyi.adrobot.beans.common.MongoPageRequest;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface RobotRepository extends MongoRepository<Robot, String>, RobotOperations {

    Robot findBySimCode(String simCode);

    List<Robot> findByOnline(boolean b, MongoPageRequest mongoPageRequest);

    Robot findBySimCodeAndOnlineAndBusy(String simCode, boolean b, boolean b1);

    List<Robot> findByOnlineAndBusy(boolean b, boolean b1);


}
